/**
* @Title: GlobalInterceptor.java
* @Package com.ssd.demo.base.core
* @Description: TODOo
* @author xiaoruihu 2016年4月25日 下午3:49:05
* @version V1.0
*/
package com.ssd.demo.base.core;

import org.slf4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;

import com.ssd.demo.base.util.Log;


/**
 * @Description: GlobalInterceptor
 * @author xiaoruihu 2016年4月25日 下午3:49:05
 */
@Component
public class GlobalInterceptor implements WebRequestInterceptor {
    protected Logger logger = Log.get();
    @Override
    public void preHandle(WebRequest request) throws Exception {
        logger.info("preHandle");
    }

    @Override
    public void postHandle(WebRequest request, ModelMap model) throws Exception {
        logger.info("postHandle");
        
    }

    @Override
    public void afterCompletion(WebRequest request, Exception ex) throws Exception {
        logger.info("afterCompletion");
    }


    
}
